<?php
/**
 * CalendarModel handles the database interactions for calendar/event actions
 *  
 * @author Jimmy E. Lewis
 * Updated on: May 14, 2008
 */
class DashboardModel extends Model {
	
	function __construct() {
		parent::__construct();
		$this->load->helper('date');		
	}
	
/** ~*~*~*~*~*~*~*~*~*~			Event Functions 		~*~*~*~*~*~*~*~*~*~			*/
	
	/**
	 * Gets the event that an item belongs to.
	 * @param $id item's id
	 * @return an event belonging to the item
	 */
	function getDashboardItems(){
		$this->db->select('items')->from('cms_dashboard_items');
		return $this->db->get();
	}